package com.java.admin.serviceType.entity;

import com.alibaba.fastjson.JSON;

import java.util.List;

public class AddEntity {
    private String serviceTypeName;
    private String serviceTypeServicePrice;
    private String serviceTypeMark;
    private String spareIdList;
    private String countList;
    private List<Integer> resultSpareIds;
    private List<Integer> resultCounts;

    public void change(){
        this.resultCounts = (List<Integer>) JSON.parse(countList);
        this.resultSpareIds = (List<Integer>) JSON.parse(spareIdList);
    }

    public List<Integer> getResultSpareIds() {
        return resultSpareIds;
    }

    public List<Integer> getResultCounts() {
        return resultCounts;
    }

    public String getServiceTypeName() {
        return serviceTypeName;
    }

    public void setServiceTypeName(String serviceTypeName) {
        this.serviceTypeName = serviceTypeName;
    }

    public String getServiceTypeServicePrice() {
        return serviceTypeServicePrice;
    }

    public void setServiceTypeServicePrice(String serviceTypeServicePrice) {
        this.serviceTypeServicePrice = serviceTypeServicePrice;
    }

    public String getServiceTypeMark() {
        return serviceTypeMark;
    }

    public void setServiceTypeMark(String serviceTypeMark) {
        this.serviceTypeMark = serviceTypeMark;
    }

    public void setSpareIdList(String spareIdList) {
        this.spareIdList = spareIdList;
    }

    public void setCountList(String countList) {
        this.countList = countList;
    }
}
